package com.seashell.appstartupjob.job;

import com.seashell.appstartupjob.config.parser.IJobConfigParser;
import org.dom4j.Element;

import javax.servlet.ServletContext;

/**
 * com.seashell.appstartupjob.job.AbstractServletJob
 * web类工作抽象类
 *
 * @author Allen
 * @version v1.0
 * @date 2017/7/19
 */
public abstract class AbstractServletJob extends AbstractJob {

    protected ServletContext servletContext;

    public AbstractServletJob(String jobName, Element configNode) {
        super(jobName, configNode);
    }

    public AbstractServletJob(String jobName, Class<? extends IJobConfigParser> parserClass, Element configNode) {
        super(jobName, parserClass, configNode);
    }

    public ServletContext getServletContext() {
        return servletContext;
    }

    public void setServletContext(ServletContext servletContext) {
        this.servletContext = servletContext;
    }
}
